package cn.jhc.bean;

import java.io.Serializable;


public class CartItemBean implements Serializable {
	
	private ShopBean shop=null;
	
	private int quantity=0;
	public CartItemBean(){
		
	}
	public CartItemBean(ShopBean shop){
		this.shop=shop;
		this.quantity=1;
		
	}
	public ShopBean getShop() {
		return shop;
	}
	public void setShop(ShopBean shop) {
		this.shop = shop;
	}
	public int getQuantity() {
		return quantity;
	}
	public void setQuantity(int quantity) {
		this.quantity = quantity;
	}
	
	public double getItemPrice(){
		double price=shop.getPrice()*quantity;
		return price;
	}
}
